from functools import wraps


def decorator(func):
    @wraps(func)
    def wrapper():
        func()

    return wrapper

@decorator
def work01():
    """这是work01"""
    print("----work01----")

if __name__ == '__main__':
    work01()
    print(work01.__name__)
    print(work01.__doc__)